package com.example.httpsocket.servlet;

import com.example.httpsocket.entity.MyRequest;
import com.example.httpsocket.entity.MyResponse;
import com.example.httpsocket.servlet.parentServlet.MyHttpServlet;

/**
 * @author Huangyt
 * @version 1.0
 * @date 2020/8/27 12:10
 */
public class UserServlet extends MyHttpServlet {
    @Override
    public void doGet(MyRequest myRequest, MyResponse myResponse) {
        this.doPost(myRequest, myResponse);
    }

    @Override
    public void doPost(MyRequest myRequest, MyResponse myResponse) {
        System.out.println("成功调用UserServlet!");
    }

    @Override
    public void init() throws Exception {

    }

    @Override
    public void destroy() {

    }
}
